#ifndef _HCC_ERROR_CODE_APP_GNSS_H_
#define _HCC_ERROR_CODE_APP_GNSS_H_

#include "ofc/ofc_types.h"
#include "hcc/hcc_error_code.h"
#include "hcc/hcc_error_code_app.h"

#ifdef __cplusplus
extern "C" {
#endif

// 不含行号的错误码生成
#define HCC_MAKE_APP_GNSS_ERROR(error_code) (int)HCC_MAKE_APP_ERROR(kHccAppGnss, error_code, HCC_ERROR_LEVEL_ERROR)
// 含行号的错误码生成
#define HCC_MAKE_APP_GNSS_ERROR_LINE(error_code) (int)HCC_ERROR(HCC_MAKE_APP_ERROR(kHccAppGnss, error_code, HCC_ERROR_LEVEL_ERROR))


/**
 * GNSS:与BOOT_LOARDER模块编号冲突，该模块编号从1修改为11
 */
enum THccAppGnssErrorCodeTag
{
	kHccAppGnssSuccess	=	HCC_ERROR_SUCCESS,			///< 成功,没有错误
	kHccAppGnssInvalidParam	=	HCC_MAKE_APP_GNSS_ERROR(1),			///<无效的参数
	kHccAppGnssInitFail	=	HCC_MAKE_APP_GNSS_ERROR(2),			///<初始化失败
	kHccAppGnssInitEventFail	=	HCC_MAKE_APP_GNSS_ERROR(3),			///<事件初始化失败
	kHccAppGnssInitMutexFail	=	HCC_MAKE_APP_GNSS_ERROR(4),			///<互斥锁初始化失败
	kHccAppGnssOpenDrvFail	=	HCC_MAKE_APP_GNSS_ERROR(5),			///<打开驱动失败
	kHccAppGnssStartTaskFail	=	HCC_MAKE_APP_GNSS_ERROR(6),			///<线程无法启动
	kHccAppGnssNotSupport	=	HCC_MAKE_APP_GNSS_ERROR(7),			///<功能不支持
	kHccAppGnssNotOpen	=	HCC_MAKE_APP_GNSS_ERROR(8),			///<串口未打开
	kHccAppGnssNoBuf	=	HCC_MAKE_APP_GNSS_ERROR(9),			///<底层无buf
};
typedef enum THccAppGnssErrorCodeTag THccAppGnssErrorCode;


typedef Int32 THccAppGnssErrorCodeLine;
#define kHccAppGnssSuccessLine	HCC_ERROR_SUCCESS	///< 成功,没有错误
#define kHccAppGnssInvalidParamLine	HCC_MAKE_APP_GNSS_ERROR_LINE(1)	///<无效的参数
#define kHccAppGnssInitFailLine	HCC_MAKE_APP_GNSS_ERROR_LINE(2)	///<初始化失败
#define kHccAppGnssInitEventFailLine	HCC_MAKE_APP_GNSS_ERROR_LINE(3)	///<事件初始化失败
#define kHccAppGnssInitMutexFailLine	HCC_MAKE_APP_GNSS_ERROR_LINE(4)	///<互斥锁初始化失败
#define kHccAppGnssOpenDrvFailLine	HCC_MAKE_APP_GNSS_ERROR_LINE(5)	///<打开驱动失败
#define kHccAppGnssStartTaskFailLine	HCC_MAKE_APP_GNSS_ERROR_LINE(6)	///<线程无法启动
#define kHccAppGnssNotSupportLine	HCC_MAKE_APP_GNSS_ERROR_LINE(7)	///<功能不支持
#define kHccAppGnssNotOpenLine	HCC_MAKE_APP_GNSS_ERROR_LINE(8)	///<串口未打开
#define kHccAppGnssNoBufLine	HCC_MAKE_APP_GNSS_ERROR_LINE(9)	///<底层无buf

#ifdef __cplusplus
}  // extern "C"
#endif

#endif // _HCC_ERROR_CODE_APP_GNSS_H_
/**
 * @
 */
